package com.lcxsoft.feign.clients;

import com.lcxsoft.commonutils.R;
import com.lcxsoft.feign.query.OrderSaveQuery;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-order")
public interface OrderClient {

    //创建订单
    @PostMapping("/foodbox/orderservice/orderUrl/createOrder")
    R createOrder(@RequestBody OrderSaveQuery query);
}
